package com.cenntro.auth.model.vo;
import java.io.Serializable;
import java.util.List;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.cenntro.auth.utils.Valid;
import com.cenntro.common.model.vo.TreeVO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色表 详情vo对象
 * </p>
 *
 * @author 
 * @since 2019-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)

@ApiModel(value="SysRole对象", description="角色表")
public class SysRoleDetailVO  implements Serializable{

    private static final long serialVersionUId = 1L;

    @NotNull(message="roleId不能是空", groups={Valid.update.class})
    @ApiModelProperty(value = "主键id")
    private Integer roleId;
    @NotBlank(message="角色名称不能是空", groups={Valid.insert.class})
    @ApiModelProperty(value = "角色名称")
    private String roleName;

    @ApiModelProperty(value = "角色说明")
    private String remark;
    @ApiModelProperty(value = "角色分类")
    private Integer roleType;
    @ApiModelProperty(hidden=true, value = "角色分类 返回显示使用")
    private String roleTypeName;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "权限id，多个用逗号分开")
    private String permssionIds;
   
    @ApiParam(hidden = true)
    private List<?> permTree;

}
